package demo3;

public class Dog extends Animal implements Irun,Iswim{
    public Dog(String name){
        this.name = name;
    }

    @Override
    public void swim(){
        System.out.println(this.name+"会游泳");
    }

    @Override
    public void run(){
        System.out.println(this.name+"会跑步");
    }

    @Override
    public void eat() {
        System.out.println(this.name+"在吃饭");
    }
}
